package com.parent.feign.client;

import com.parent.feign.client.impl.Main01FeignClientFallbackFactory;
import com.parent.feign.demo.DeviceFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 接口：name指的的是服务的名称，path指的是服务的前缀，若服务包含前缀必须指明，否则404
 *
 * @author yan
 * @date 2023/4/13 0013 15:25
 */
@FeignClient(name = "main01", path = "/main01", fallbackFactory = Main01FeignClientFallbackFactory.class)
public interface Main01FeignClient {

    //    @RequestMapping(value = "/v2/device/deviceInfo", method = RequestMethod.POST,consumes = "application/json")
//    SerializableResult<DeviceInfoOutVo> deviceInfo(@RequestBody DeviceOutDto deviceOutDto) throws Exception;
    @GetMapping("/api/demo")
    public String nacos();
}
